package com.xuetang9.t9.xinhuaxia.service;

import com.github.pagehelper.PageInfo;
import com.xuetang9.t9.xinhuaxia.beans.Goods;

import java.util.List;

/**
 * @author 李亚奇
 * @version 1.0
 * @desc TODO
 * @date 2020/2/23 16:33
 * @copyright liyq
 * @address 成都西部国际金融中心2栋2201
 **/
public interface IGoodsService {

    boolean insertGoods(Goods goods);

    boolean removeGoods(Long goodsId);

    boolean updateGoods(Goods goods);

    Goods queryById(Long goodsId);

    Goods queryByGoods(Goods goods);

    PageInfo<Goods> queryByPage(int currentPage,int perPageSize);

    PageInfo<Goods> queryByLabel(String Label,int currenPage, int perPageSize);

    List<Goods>queryShopMain(String Label);

    List<Goods>queryAll();

    List<Goods> queryByFirstCategory(Long fid);
}
